﻿using System.Windows;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
using UC.BaseMVVM;

namespace UC.Login
{
    public class CadastroDeUsuarioViewModel : ViewModelBase
    {
        public ICadastroDeUsuarioModel CadastroDeUsuarioModel { get; private set; }

        public CadastroDeUsuarioViewModel(ICadastroDeUsuarioModel cadastroDeUsuarioModel)
        {
            CadastroDeUsuarioModel = cadastroDeUsuarioModel;
        }

        private ICommand _confirmarCommand;
        public ICommand ConfirmarCommand { get { return _confirmarCommand ?? new DelegateCommand(Confirmar, () => CadastroDeUsuarioModel.ModelValido); } }

        private void Confirmar()
        {
            MessageBox.Show("Clicou");
        }
    }
}